projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc79700
)
Fix crash when no descr available.
author
robertl
<robertl>
Mon, 18 Aug 2003 18:09:01 +0000
(18:09 +0000)
committer
robertl
<robertl>
Mon, 18 Aug 2003 18:09:01 +0000
(18:09 +0000)
mapsource.c
patch
|
blob
|
history
diff --git
a/mapsource.c
b/mapsource.c
index 6b4a9b08f54c13612e01e7f24822c78f53b18170..5ebc91894ca749a939a9065fda0a364c213691b7 100644
(file)
--- a/
mapsource.c
+++ b/
mapsource.c
@@
-257,7
+257,7
@@
mps_waypt_pr(const waypoint *wpt)
icon = mps_find_icon_number_from_desc(wpt->icon_descr, MAPSOURCE);
- if (get_cache_icon(wpt) && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) {
+ if (get_cache_icon(wpt) &&
wpt->icon_descr &&
(strcmp(wpt->icon_descr, "Geocache Found") != 0)) {
icon = mps_find_icon_number_from_desc(get_cache_icon(wpt), MAPSOURCE);
}